package com.css.openapi.controller;


import com.css.common.core.constant.ApiAccess;
import com.css.common.core.constant.Result;
import com.css.openapi.BO.ZrrXsecxRep;
import com.css.openapi.service.ApiFzService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@Api(tags = "辅助服务Api")
@RestController
@RequestMapping("/fz")
public class FzfwApiController {

    @Resource
    private ApiFzService apiFzService;

    /**
     * 自然人销售额查询（再生资源回收适用）
     * @param param xm,sfzjhm
     * @return {@link Result }<{@link ZrrXsecxRep }>
     */
    @ApiAccess
    @PostMapping("/queryZrrXse")
    public Result<ZrrXsecxRep> queryZrrxse(@RequestBody Map<String,String> param) {
        return Result.ok(this.apiFzService.queryZrrxse(param));
    }
}
